﻿using Microsoft.AspNetCore.SignalR;
using System.Threading.Tasks;

namespace WebServer.Hubs
{
    public class TestHub : Hub
    {
        public string GetName()
        {
            return "TestHub";
        }

        public async Task<string> Test(string abc)
        {
            await Clients.Client(Context.ConnectionId).SendAsync("Test", abc + DateTime.Now.ToString());
            return DateTime.Now.ToString();
        }
    }
}
